import org.omg.CORBA.PUBLIC_MEMBER;
import java.util.Date;
import static java.lang.Math.*;

public class Computer {
    /*private String cpu;
    private String memory;
    private String screen;
    String brand;

    public String getCpu() {
        return cpu;
    }

    public void setCpu(String cpu) {
        this.cpu = cpu;
    }

    public String getMemory() {
        return memory;
    }

    public void setMemory(String memory) {
        this.memory = memory;
    }

    public Computer(String brand, String cpu, String memory, String screen){
        this.brand = brand;
        this.cpu = cpu;
        this.memory = memory;
        this.screen = screen;
    }
    public void Boot(){
        System.out.println("biu~~~开机");
    }
    public void PowerOff(){
        System.out.println("boom~~~关机");
    }
   public static void main(String[] args){
        Computer p = new Computer("SM","i7","12G","13*20");
        System.out.println(p.brand);
        System.out.println(p.cpu);
        Date date = new Date();
        System.out.println(date.getTime());

        double x = 30.5;
        double y = 40.5;
        double r = sqrt(pow(x,4)+pow(y,8));
        System.out.println(r);
   }
     */
    public static void main(String[] args){
        PetDog lbt = new PetDog();
        lbt.setName("皇上");
        lbt.setAge(4);
        lbt.setColor("屎黄");
        lbt.barks();
        lbt.wag();
        System.out.println(lbt);
    }


}
